package cn.edu.xaut.mybatisers.mall.Dao;

import cn.edu.xaut.mybatisers.mall.Entity.Commodity;
import cn.edu.xaut.mybatisers.mall.Entity.Favourite;
import cn.edu.xaut.mybatisers.mall.Entity.ShoppingTrolley;
import org.apache.ibatis.annotations.Param;

import java.sql.SQLException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;

public interface ShoppingTrolleyDao {
    void addCommodity(ShoppingTrolley shoppingTrolley) throws SQLException;
    void deleteCommodity(ShoppingTrolley shoppingTrolley);
    void emptyCart(String commodity_ids , int consummer_id);
    List<ShoppingTrolley> countPrice(int consummer_id);
    ArrayList<ShoppingTrolley> selectByTwoId(ShoppingTrolley shoppingTrolley);
    void updateNumber(ShoppingTrolley shoppingTrolley);
    Commodity findCommodityById(int id);
    List<HashMap<String, Object>> findCommodityInTrolley(int consummer_id);
}
